package org.testing.model.correctQuestionAnswers;

import org.testing.model.userAnswers.UserAnswer;

public class CorrectSingleAnswer implements CorrectAnswer {
	private String text;
	
	public CorrectSingleAnswer(String answer) {
		this.text = answer;
	}
	
	
	@Override
	public double equals(UserAnswer userUnswer) {
		return  this.text.equals(userUnswer.getAnswers()[0])?1.0:0.0;
	}

}
